package com.xy.shop.wechat.service.impl;

import com.xy.shop.wechat.dao.WechatSubscribeMapper;
import com.xy.shop.wechat.dto.WechatSubscribe;
import com.xy.shop.wechat.service.WechatSubscribeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


/**
*@Description: 关注微信 公众号信息保存
*@Param:  null
*@Author: zyy
*@date: 2020/6/24
*@Time: 11:34
*/
@Service
public class WechatSubscribeServiceImpl implements WechatSubscribeService {

    @Resource
    private WechatSubscribeMapper wechatSubscribeMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return wechatSubscribeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(WechatSubscribe record) {
        return wechatSubscribeMapper.insert(record);
    }

    @Override
    public int insertSelective(WechatSubscribe record) {
        return wechatSubscribeMapper.insertSelective(record);
    }

    @Override
    public WechatSubscribe selectByPrimaryKey(Integer id) {
        return wechatSubscribeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(WechatSubscribe record) {
        return wechatSubscribeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(WechatSubscribe record) {
        return wechatSubscribeMapper.updateByPrimaryKey(record);
    }
}
